package sunyu.controller.shiro.pojo;

import java.io.Serializable;
import java.util.Set;

/**
 * 用于存储用户登陆后的信息
 *
 * @author 孙宇
 */
public class ShiroInfo implements Serializable {

    private String userId;
    private String userName;
    private String userLoginName;
    private String userLoginPassword;
    private Set<String> roles;//用户所属的角色名称集合
    private Set<String> permissions;//用户拥有的权限集合


    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserLoginName() {
        return userLoginName;
    }

    public void setUserLoginName(String userLoginName) {
        this.userLoginName = userLoginName;
    }

    public String getUserLoginPassword() {
        return userLoginPassword;
    }

    public void setUserLoginPassword(String userLoginPassword) {
        this.userLoginPassword = userLoginPassword;
    }

    public Set<String> getRoles() {
        return roles;
    }

    public void setRoles(Set<String> roles) {
        this.roles = roles;
    }

    public Set<String> getPermissions() {
        return permissions;
    }

    public void setPermissions(Set<String> permissions) {
        this.permissions = permissions;
    }
}
